// 导入axios
import instance from '@/http/request.js';

// 定义登录密码接口
export function loginFn(data) {
    return instance({
        url: '/api/common/auth/login',
        method: 'post',
        data
    })
}


// 定义短信登录
export function loginPhoneFn(data) {
    return instance({
        url: '/api/common/auth/mobile',
        method: 'post',
        data
    })
}


// 定义图像验证码是否输入正确接口
export function verifyCaptcha(data) {
    return instance({
        url: '/api/common/captcha/verify',
        method: 'post',
        data
    })
}

// 定义发送短信验证码接口
export function sendMsgtoPhone(data) {
    return instance({
        url: '/api/common/sms/send',
        method: 'post',
        data
    })
}
